<!DOCTYPE html>
<html>
<head>
    <title>StudentInfoTable</title>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no" name="viewport">
    <link rel="stylesheet" href="../../css/bootstrap.min.css">
    <link rel="stylesheet" href="../../css/font-awesome.min.css">
    <link rel="stylesheet" href="../../plugins/jqgrid/ui.jqgrid-bootstrap.css">
    <link rel="stylesheet" href="../../plugins/ztree/css/metroStyle/metroStyle.css">
    <link rel="stylesheet" href="../../css/main.css">
    <script src="../../libs/jquery.min.js"></script>
    <script src="../../plugins/layer/layer.js"></script>
    <script src="../../libs/bootstrap.min.js"></script>
    <script src="../../libs/vue.min.js"></script>
    <script src="../../libs/validator.min.js"></script>
    <script src="../../plugins/jqgrid/grid.locale-cn.js"></script>
    <script src="../../plugins/jqgrid/jquery.jqGrid.min.js"></script>
    <script src="../../plugins/ztree/jquery.ztree.all.min.js"></script>
    <script src="../../js/common.js"></script>
    <script src="../../libs/jquery.validate.js"></script>
    <script src="../../libs/validate-methods.js"></script>
    <script src="../../libs/messages_zh.js"></script>
    <script src="../../libs/My97DatePicker/4.8/WdatePicker.js"></script>
</head>
<body>
<div id="rrapp" v-cloak>
    <div v-show="showList">
        <div class="grid-btn">
            <div class="form-group col-sm-3 set-paddingLeft">
                <input type="text" class="form-control" v-model="q.key" @keyup.enter="query" placeholder="学号/班级名称/姓名/出生年月/民族/学院/专业/专业代码/联系电话">
            </div>
            <div class="btn-container">
                <a class="normal-btn search-color" @click="query">查询</a>
                <a class="normal-btn normal-color" @click="add"><i class="fa fa-plus"></i>&nbsp;新增</a>
                <a class="normal-btn normal-color" id="exportExcel" href="StudentInfo/export/12345?token=523c7e3f75ad8bb69b2703e8f7944c44"><i class="fa fa-pencil-square-o"></i>&nbsp;导出</a>
                <a class="normal-btn normal-color" @click="pullin"><i class="fa fa-plus"></i>&nbsp;导入</a>
            </div>
        </div>
        <table id="jqGrid"></table >
        <div id="jqGridPager"></div>
    </div>

    <div v-show="!showList" class="panel panel-default">
        <div class="panel-heading">{{title}}</div>
        <form class="form-horizontal" id="aaa">
            <div class="form-group">
                <div class="col-sm-2 control-label">学号</div>
                <div class="col-sm-10">
                    <input type="text" name="id" class="form-control" v-model="StudentInfo.studentSchoolId" placeholder="学号"/>
                </div>
            </div>
            <div class="form-group">
                <div class="col-sm-2 control-label">班级名称</div>
                <div class="col-sm-10">
                    <input type="text" name="className"class="form-control" v-model="StudentInfo.studentClassId" placeholder="班级名称"/>
                </div>
            </div>
            <div class="form-group">
                <div class="col-sm-2 control-label">姓名</div>
                <div class="col-sm-10">
                    <input type="text" name="name" class="form-control" v-model="StudentInfo.studentName" placeholder="姓名"/>
                </div>
            </div>
            <div class="form-group">
                <div class="col-sm-2 control-label">性别</div>
                <div class="col-sm-10">
                    <input type="text" name="sex" class="form-control" v-model="StudentInfo.studentSexual" placeholder="性别"/>
                </div>
            </div>
            <div class="form-group">
                <div class="col-sm-2 control-label">出生日期</div>
                <div class="col-sm-10">
                    <input type="text" name="birthday" class="form-control" v-model="StudentInfo.studentBirthday" placeholder="出生日期" onfocus="WdatePicker({dateFmt:'yyyy-MM-dd'})" @focus="changeTime()" id="birthday"/>
                </div>
            </div>
            <div class="form-group">
                <div class="col-sm-2 control-label">民族</div>
                <div class="col-sm-10">
                    <input type="text" name="ethnic" class="form-control" v-model="StudentInfo.studentEthnicity" placeholder="民族"/>
                </div>
            </div>
            <div class="form-group">
                <div class="col-sm-2 control-label">学院</div>
                <div class="col-sm-10">
                    <input type="text" name="collage" class="form-control" v-model="StudentInfo.studentDepartment" placeholder="学院"/>
                </div>
            </div>
            <div class="form-group">
                <div class="col-sm-2 control-label">专业名称</div>
                <div class="col-sm-10">
                    <input type="text" name="professionName" class="form-control" v-model="StudentInfo.studentProfessionName" placeholder="专业名称"/>
                </div>
            </div>
            <div class="form-group">
                <div class="col-sm-2 control-label">学制</div>
                <div class="col-sm-10">
                    <input type="text" name="schoolingYear" class="form-control" v-model="StudentInfo.studentSchoolingYear" placeholder="学制"/>
                </div>
            </div>
            <div class="form-group">
                <div class="col-sm-2 control-label">当前所在级</div>
                <div class="col-sm-10">
                    <input type="text" id="currentGrade" name="currentGrade" class="form-control" v-model="StudentInfo.studentCurrentGrade" placeholder="当前所在级" onfocus="WdatePicker({dateFmt:'yyyy'})" @focus="changeTime()"/>
                </div>
            </div>
            <div class="form-group">
                <div class="col-sm-2 control-label">入学日期</div>
                <div class="col-sm-10">
                    <input type="text" id="enrollDate" name="enrollDate" class="form-control" v-model="StudentInfo.studentEnrollDate" placeholder="入学日期" onfocus="WdatePicker({dateFmt:'yyyy-MM-dd'})" @focus="changeTime()"/>
                </div>
            </div>
            <div class="form-group">
                <div class="col-sm-2 control-label">联系电话</div>
                <div class="col-sm-10">
                    <input type="text" name="telNumber" class="form-control" v-model="StudentInfo.studentTelNumber" placeholder="联系电话"/>
                </div>
            </div>
            <div class="form-group">
                <div class="col-sm-2 control-label">专业代码</div>
                <div class="col-sm-10">
                    <input type="text" name="professionCode" class="form-control" v-model="StudentInfo.studentProfessionCode" placeholder="专业代码"/>
                </div>
            </div>
            <div class="form-group">
                <div class="col-sm-2 control-label"></div>
                <input type="submit" class="btn btn-primary" @click="saveOrUpdate" value="确定"/>
                &nbsp;&nbsp;<input type="button" class="btn btn-warning" @click="reload" value="返回"/>
            </div>
        </form>
    </div>
</div>

<script src="../../js/modules/jxgk/student_info.js"></script>
</body>
</html>